/*
 * Created By	: Võ Hữu Phúc
 * Created	Date: 2008-Dec-24
 * Updated Date	: 2009-Jan-17
 * Summary:
 * 		Hàm này để khai báo thông tin các attributes của element document
 * 		Element document này xuất hiện trong task element. 
 */
package spe.jbpm.gd.jpdl.model;

import org.jbpm.gd.common.model.AbstractSemanticElement;

public class Document extends AbstractSemanticElement {
	
	private String documentId = "";
	private String documentName = "";
	
	private String currentStateId = "";
	private String currentStateName = "";
	
	private String documentAction = "";	
	
	/*
	 * Document Id
	 */
	public void setDocumentId(String newDocumentId) {
		String oldDocumentId = documentId;
		documentId = newDocumentId;
		firePropertyChange("documentId", oldDocumentId, newDocumentId);
	}	
	public String getDocumentId() {
		return documentId;
	}

	/*
	 * Document Name
	 */
	public void setDocumentName(String newDocumentName) {
		String oldDocumentName = documentName;
		documentName = newDocumentName;
		firePropertyChange("documentName", oldDocumentName, newDocumentName);
	}	
	public String getDocumentName() {
		return documentName;
	}
	
	
	/*
	 * Current State Id
	 */
	public void setCurrentStateId(String newCurrentStateId) {
		String oldCurrentStateId = currentStateId;
		currentStateId = newCurrentStateId;
		firePropertyChange("currentStateId", oldCurrentStateId, newCurrentStateId);
	}	
	public String getCurrentStateId() {
		return currentStateId;
	}
	
	/*
	 * Current State Name
	 */
	public void setCurrentStateName(String newCurrentStateName) {
		String oldCurrentStateName = currentStateName;
		currentStateName = newCurrentStateName;
		firePropertyChange("currentStateName", oldCurrentStateName, newCurrentStateName);
	}	
	public String getCurrentStateName() {
		return currentStateName;
	}

	/*
	 * Document Action
	 */
	public void setDocumentAction(String newDocumentAction) {
		String oldDocumentAction = documentAction;
		documentAction = newDocumentAction;
		firePropertyChange("documentAction", oldDocumentAction, newDocumentAction);
	}
	public String getDocumentAction() {
		return documentAction;
	}
	
}
